import request from '@/utils/request'

// 查询关系列表
export function listUserRole(query) {
  return request({
    url: '/cand/userRole/list',
    method: 'get',
    params: query
  })
}

// 查询关系详细
export function getUserRole(id) {
  return request({
    url: '/cand/userRole/' + id,
    method: 'get'
  })
}

// 新增关系
export function addUserRole(data) {
  return request({
    url: '/cand/userRole',
    method: 'post',
    data: data
  })
}

// 修改关系
export function updateUserRole(data) {
  return request({
    url: '/cand/userRole',
    method: 'put',
    data: data
  })
}

// 删除关系
export function delUserRole(id) {
  return request({
    url: '/cand/userRole/' + id,
    method: 'delete'
  })
}
